/**
 * @description 微信小程序支付
 * @param {String} data 支付相关数据
 */
export function weChatMpPay(data, successCallback = () => {}, errorCallBack = () => {}) {
  uni.requestPayment({
    provider: "wxpay",
    ...data,
    success: (res) => {
      successCallback(res)
    },
    fail: (err) => {
      errorCallBack(err)
    }
  })
}
